
ui("$").setMapping({
	"aLayoutRow.tag":"friendId",	
	"ImgUserPic.source" : "fullFriendLogo",
	"lableNick.text" : "remark", //好友备注
	"labelSex.text" : "sexIcon",
	"labelSex.bgColor" : "sexColor",
	"segment4Interests.tag" : "interestList",
	"layoutNeighbor.visible" : "neighbor",
	"lableOurCircle.text" : "ourCircleDesc"
});

var segmentView=ui("segment4Interests");
var listdata = mm("do_ListData");
segmentView.bindItems(listdata);

var jsonImgs = [];
ui("$").on("dataRefreshed", function(){
	jsonImgs = [];
	listdata.removeAll();
	var interestsList = JSON.parse(ui("segment4Interests").tag);//兴趣
	if(interestsList.length>0){
		for (var i = 0; i < interestsList.length; i++) {
			jsonImgs.push({
				index: i,
				interest : interestsList[i]
			});
		}
		listdata.addData(jsonImgs);
	}
	segmentView.refreshItems();
	
});
